import request from '@/utils/request'

// 查询非遗演形式汇总列表
export function listForm(query) {
  return request({
    url: '/books/form/list',
    method: 'get',
    params: query
  })
}

// 查询非遗演形式汇总详细
export function getForm(performanceFormId) {
  return request({
    url: '/books/form/' + performanceFormId,
    method: 'get'
  })
}

// 新增非遗演形式汇总
export function addForm(data) {
  return request({
    url: '/books/form',
    method: 'post',
    data: data
  })
}

// 修改非遗演形式汇总
export function updateForm(data) {
  return request({
    url: '/books/form',
    method: 'put',
    data: data
  })
}

// 删除非遗演形式汇总
export function delForm(performanceFormId) {
  return request({
    url: '/books/form/' + performanceFormId,
    method: 'delete'
  })
}
